package com.example.strategy.pay;

public class ZTest {
    public static void main(String[] args) {
        PaymentContext paymentContext = new PaymentContext();
        IPaymentStrategy payStrategy = paymentContext.getPayStrategy(PayWay.Ali_Pay);
        payStrategy.pay();

        payStrategy = paymentContext.getPayStrategy(PayWay.Wechat_Pay);
        payStrategy.pay();
    }

}
